#include <iostream>
#include <conio.h>

//y = -2.4 * x(2degres) + 5 * x - 3 for 10  x

int main(){
	double const a = -2.4 ;
	double const b = 5 ;
	double const c = - 3;
	double y = 0.0 ;
	double x = 0.0 ;
	double Y[10] ;
	double X[10] ;
	int change = 0 ;
	std::cout << "if you want see result animjapes click 1 or if you want see result then click 0" << std::endl ;
	std::cin >> change;
	if(1 == change){
		for( int i = 0 ; i < 10 ; ++i ){
			std::cout << i + 1 << "x = " ;
			std::cin >> x ;
			y = a * x * x + b * x + c ;
			std::cout << i + 1 << "y = " << y << std::endl ;
		}
	}
	else if(0 == change){
		for(int i = 0 ; i < 10 ; ++i){
			std::cout << i + 1 << "x = " ;
			std::cin >> X[i] ;
		}
		for(int i = 0 ; i < 10 ; ++i){
			Y[i] = a * X[i] * X[i] + b * X[i] + c ;
			std::cout << i + 1 << "y = " << Y[i] << std::endl ;
		}
	}
	else{
		std::cout <<"your chose error " << std::endl ;
	}
	getch();
	return 0;
}